<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
    String contextPath = request.getContextPath();
%>
<html>
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/easyUI/themes/gray/easyuia.css">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/easyUI/icon.css">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/query-form.css">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/jquery.loadmask.css" />
    <script type="text/javascript" src="<%=contextPath%>/resources/js/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="<%=contextPath%>/resources/js/jquery.easyui.min.js"></script>
    <script type='text/javascript' src='<%=contextPath%>/resources/js/jquery.loadmask.js'></script>
    <script type='text/javascript' src='<%=contextPath%>/resources/js/util.js'></script>
    <script type='text/javascript' src='<%=contextPath%>/resources/js/date.js'></script>
    <script type='text/javascript' src='<%=contextPath%>/resources/js/views/department.js'></script>
</head>
<body>
<div id="content" style="height: 100%">
    <div class="time">
        <ul>
            <li>
                <label> 部门名称或简称：<input class="easyui-textbox"  type="text" name="searchname" id="searchname" /></label>
                <label> <a href="#" onclick="query(1,30);"class="easyui-linkbutton" iconCls="icon-search">查询</a> </label>
            </li>
        </ul>
    </div>
    <br>
    <div id="tablepanel" class="easyui-panel" style="width:'100%';height:auto;padding:10px;padding-right: 25px;" title="报表列表">
	<table id="tt" style="width:auto;height:auto;" rownumbers="true" ></table>
	</div>
</div>

<div id="dialogAdd">
    <form id="fmAdd" name="formHead" style="text-align:right; padding-top: 10px; height: 95%; width: 100%" method="post"
          action="<%=contextPath%>/department/save.do">
          
        <input type="hidden" name="id" id="id"/>
        
        <table style="text-align:left;padding-left: 20px;width: 95%" id="ruleTable">
            <tr>
                <td style="width:120px;text-align:right">部门名称:</td>
                <td ><input class="easyui-textbox"  style="margin-left:2px;width:200px;" type="text" name="name" id="name"/></td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right">部门简称:</td>
                <td ><input class="easyui-textbox"  style="margin-left:2px;width:200px;" type="text" name="sname" id="sname"/></td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right">部门编号:</td>
                <td ><input class="easyui-textbox"  style="margin-left:2px;width:200px;" type="text" name="code" id="code"/></td>
                <td >单位简称_编号,如:AB_001</td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right"><label>部门分类:</label></td>
	            <td>
		            <select class="easyui-combobox" name="type"  id="type" style="width: 200px;">
						<c:forEach var="depart" items="${departList}">
							<option value="${depart.id}">${depart.name}</option>
						</c:forEach>
		            </select>
                </td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right"><label>上级部门:</label></td>
	            <td>
		            <select class="easyui-combobox" name="pid"  id="pid" style="width: 200px;">
						<option value="0">陕西省</option>
						<c:forEach var="pidDepart" items="${pidDepartList}">
							<option value="${pidDepart.id}">${pidDepart.name}</option>
						</c:forEach>
		            </select>
                </td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right"><label>部门级别:</label></td>
	            <td>
		            <select class="easyui-combobox" name="level" id="level" style="width: 200px;">
		                <option value="1">国家级</option>
		                <option value="2">省/部级</option>
		                <option value="3">地/市级</option>
		                <option value="4">区/县级</option>
		                <option value="5">乡/镇级</option>
		                <option value="0">其他级</option>
		            </select>
                </td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right"><label>所属地域:</label></td>
	            <td>
		            <select class="easyui-combobox" name="area"  id="area" style="width: 200px;">
						<c:forEach var="areaOption" items="${areaList}">
							<option value="${areaOption.id}">${areaOption.name}</option>
						</c:forEach>
		            </select>
                </td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right">单位负责人:</td>
                <td ><input class="easyui-textbox" style="margin-left:2px;width:200px;" type="text" name="charge" id="charge"/></td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right">统计负责人:</td>
                <td ><input class="easyui-textbox" style="margin-left:2px;width:200px;" type="text" name="author" id="author"/></td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right">联系电话:</td>
                <td ><input class="easyui-textbox"  style="margin-left:2px;width:200px;" type="text" name="phone" id="phone"/></td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right">邮箱:</td>
                <td ><input class="easyui-textbox" style="margin-left:2px;width:200px;" type="text" name="email" id="email"/></td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right">地址:</td>
                <td ><input class="easyui-textbox" style="margin-left:2px;width:200px;" type="text" name="address" id="address"/></td>
            </tr>
        </table>
        <div style = "margin-right:40%">
	        <a class="easyui-linkbutton" id="a_AddOK" onclick="">确定</a>
	        <a class="easyui-linkbutton" id="a_AddCancle">取消</a>
        </div>
    </form>
</div>

</body>
</html>